package com.hdl.school.utils;

import android.hardware.usb.UsbDeviceConnection;
import android.hardware.usb.UsbEndpoint;
import android.hardware.usb.UsbInterface;

public class USBMap {
    private String usbPath;
    private UsbDeviceConnection usbDeviceConnection;
    private UsbEndpoint usbSendEndpoint;
    private UsbEndpoint usbRevEndpoint;
    private Object lock;

    public USBMap(String usbPath, UsbDeviceConnection usbDeviceConnection, UsbEndpoint usbSendEndpoint, UsbEndpoint usbRevEndpoint) {
        this.usbPath = usbPath;
        this.usbDeviceConnection = usbDeviceConnection;
        this.usbSendEndpoint = usbSendEndpoint;
        this.usbRevEndpoint = usbRevEndpoint;
        this.lock=new Object();
    }

    public String getUsbPath() {
        return usbPath;
    }

    public void setUsbPath(String usbPath) {
        this.usbPath = usbPath;
    }

    public UsbDeviceConnection getUsbDeviceConnection() {
        return usbDeviceConnection;
    }

    public void setUsbDeviceConnection(UsbDeviceConnection usbDeviceConnection) {
        this.usbDeviceConnection = usbDeviceConnection;
    }

    public UsbEndpoint getUsbSendEndpoint() {
        return usbSendEndpoint;
    }

    public void setUsbSendEndpoint(UsbEndpoint usbSendEndpoint) {
        this.usbSendEndpoint = usbSendEndpoint;
    }

    public UsbEndpoint getUsbRevEndpoint() {
        return usbRevEndpoint;
    }

    public void setUsbRevEndpoint(UsbEndpoint usbRevEndpoint) {
        this.usbRevEndpoint = usbRevEndpoint;
    }

    public Object getLock() {
        return lock;
    }

    public void setLock(Object lock) {
        this.lock = lock;
    }
}
